package com.qiaofang.dataprocessing.dao.mapper;

import com.qiaofang.dataprocessing.stub.bean.request.PropertyEntrustRequest;
import com.qiaofang.dataprocessing.stub.bean.response.PropertyEntrustDTO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

/**
 * @Author: youqing.yang
 * @Create: 2020/12/15 16:22
 * @Description:
 **/
public interface PropertyEntrustMapper {


    Long getPropertyEntrustCount(PropertyEntrustRequest propertyEntrustRequest);

    /**
     * 分页查询房源委托
     * @param propertyEntrustRequest
     * @param rowBounds
     * @return
     */
    List<PropertyEntrustDTO> getPropertyEntrustPage(PropertyEntrustRequest propertyEntrustRequest, RowBounds rowBounds);

    /**
     * 我已联系
     * @param propertyEntrustId
     * @return
     */
    Integer acceptEntrustMyself(@Param("propertyEntrustId") Long propertyEntrustId);
}
